/**************************************************************************//**
 * @file     FlashDev.c
 * @brief    Flash Device Description for New Device Flash
 * @version  V1.0.0
 * @date     10. January 2018
 ******************************************************************************/
/*
 * Copyright (c) 2010-2018 Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the License); you may
 * not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
#include ".\FlashOS.H"        // FlashOS Structures


struct FlashDevice const FlashDevice  =  {
   FLASH_DRV_VERS,             /* 驱动版本，勿修改，这个是MDK定的 */           // Driver Version, do not modify!
   "MIMXRT1052_5F1GM7",       /* 算法名，添加算法到MDK安装目录会显示此名字 */ // Device Name 
   EXTSPI,                     /* 设备类型 */                                  // Device Type
   0x62000000,                 /* Flash起始地址 */                             // Device Start Address
   0x08000000,                 /* Flash大小 */                                 // Device Size in Bytes (32MB)
   0x0800,                     /* 编程页大小 */                                // Programming Page Size
   0,                          /* 保留，必须为0 */                             // Reserved, must be 0
   0xFF,                       /* 擦除后的数值 */                              // Initial Content of Erased Memory
   0xFFFF,                       /* 页编程等待时间 */                            // Program Page Timeout 2000 mSec
   0xFFFF,                       /* 扇区擦除等待时间 */                          // Erase Sector Timeout 5000 mSec

   /* 扇区大小，扇区地址 */    // Specify Size and Address of Sectors
   0x001000, 0x000000,         // Sector Size 4kB (2048 Sectors)
   SECTOR_END
};
